.dashboard {
    padding: 20px;
    background-color: var(--dark-bg-color);
}

.userInfo {
    display: flex;
    align-items: center;
    padding-bottom: 16px;

    .userImg {
        width: 80px;
        height: 80px;
        margin-right: 25px;
        border-radius: 50%;
    }
}

.report {
    display: flex;

    .card {
        flex: 1;
        height: 100px;
        padding: 10px;
        margin-right: 20px;
        font-size: 14px;
        color: var(--dark-color);
        border-radius: 5px;

        &:nth-child(1) {
            background-color: #f4864f;
        }

        &:nth-child(2) {
            background-color: #887edc;
        }

        &:nth-child(3) {
            background-color: #4f95e5;
        }

        &:nth-child(4) {
            background-color: #6dc3d7;
        }

        &:last-child {
            margin-right: 0;
        }

        .data {
            font-size: 24px;
            text-align: center;
        }
    }
}

.chart {
    margin-top: 50px;

    .pieChart {
        display: flex;
        height: 400px;

        .pieItem {
            flex: 1;
        }
    }

    .chartItem {
        height: 400px;
        // Echarts图表宽度溢出容器盒子解决
        div:first-child {
            width: 100% !important;

            canvas {
                width: 100% !important;
            }
        }
    }
}
